#!/usr/bin/env python3
"""Economic Crimes Analysis Script
Author: Juan Moises de la Serna
"""
import pandas as pd
import seaborn as sns
import matplotlib.pyplot as plt

df = pd.read_csv('crimes_extended.csv')
print(df.groupby('country')[['cpi_score','tax_evasion_pct_gdp']].mean())

sns.scatterplot(data=df, x='cpi_score', y='money_laundering_bn_usd', hue='country')
plt.title('CPI Score vs Money Laundering')
plt.tight_layout()
plt.savefig('corruption_vs_laundering.png', dpi=150)
